import request from "@/utils/request";

export function queryAddressMappingListByConditionMap2(data) {
  return request({
    url: 'api/efficiencyTools/addressMapping/queryAddressMappingListByConditionMap2',
    method: 'get',
    params: data,
  })
}

export function downloadDataToExcel(data) {

  return request({
    url: 'api/efficiencyTools/addressMapping/downloadAddressMappingListByCondition',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}


export function queryAddressMappingByCondition(data) {
  return request({
    url: 'api/efficiencyTools/addressMapping/queryAddressMappingByCondition',
    method: 'get',
    params: data,
  })
}


export function updateAddressMapping(data) {
  return request({
    url: 'api/efficiencyTools/addressMapping/updateAddressMapping',
    method: 'post',
    data: data,
  })
}

export function saveAddressMappingSingleLineData(data) {
  return request({
    url: 'api/efficiencyTools/addressMapping/saveAddressMappingSingleLineData',
    method: 'post',
    data: data,
  })
}

export function deleteAddressMappingByIntegerIdList(data) {
  return request({
    url: 'api/efficiencyTools/addressMapping/deleteAddressMappingByIntegerIdList',
    method: 'delete',
    params: data,
  })
}

export function insertByExcel(data) {
  return request({
    url: '/api/efficiencyTools/addressMapping/insertByExcel',
    method: 'post',
    data: data
  })
}
